import instance from "./instance";
// 登录
export const LoginApi=(values: any)=>{
    return instance.post('/login',values)
}
// 获取列表数据
export const getList=(data:any)=>{
    return instance.get('/list',{params:data})
}
// 新增
export const Addlist=(data:any)=>{
    return instance.put('/list',data)
}
// 编辑
export const Editlist=(data:any)=>{
    return instance.post('/list',data)
}
// 删除
export const Dellist=(id:any)=>{
    return instance.delete('/list',{params:{id}})
}
